From: Timo Röhling Date: Thu, 27 Jan 2022 11:38:59 +0000 (+0100) Subject: Enable Vulkan on 64 bit architectures only X-Git-Tag: archive/raspbian/1.9.25+dfsg3-1+rpi1^2~74 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https://%22Program/%22http:/www.example.com/cgi/%22https:/%22Program?a=commitdiff_plain;h=2cd5d9e5310475cf242d910d5d691a75bd8d8112;p=filament.git Enable Vulkan on 64 bit architectures only Filament assumes that VkSurfaceKHR is a pointer type, which is only true on 64 bit architectures. Gbp-Dch: full --- diff --git a/debian/rules b/debian/rules index 60fabc3..5fec826 100755 --- a/debian/rules +++ b/debian/rules @@ -8,6 +8,13 @@ export DEB_BUILD_MAINT_OPTIONS = hardening=+all reproducible=+all future=+lfs FILAMENT_VERSION := $(shell echo $(DEB_VERSION_UPSTREAM) | sed 's/[+~]dfsg[0-9]*$$//') FILAMENT_SOVERSION := $(shell echo $(FILAMENT_VERSION) | cut -d. -f1,2) +# Filament assumes that VkSurfaceKHR is a pointer type, which is only true on 64 bit +ifeq ($(DEB_HOST_ARCH_BITS),64) +SUPPORTS_VULKAN = ON +else +SUPPORTS_VULKAN = OFF +endif + %: dh $@ @@ -18,6 +25,7 @@ override_dh_auto_configure: -DFILAMENT_SKIP_SAMPLES=ON \ -DFILAMENT_ENABLE_JAVA=OFF \ -DUSE_STATIC_LIBCXX=OFF \ + -DFILAMENT_SUPPORTS_VULKAN=$(SUPPORTS_VULKAN) \ -DFILAMENT_VERSION=$(FILAMENT_VERSION) \ -DFILAMENT_SOVERSION=$(FILAMENT_SOVERSION) \ -DFILAMENT_LIBDIR=lib/$(DEB_HOST_MULTIARCH) \